/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.cadi.levelsManager;

import com.cadi.aux.Levels;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import com.cadi.games.Compare;
import com.cadi.games.CompareDifficult;

/**
 *
 * @author Luis eduardo Garay
 */


public class LevelsCompare extends Levels{
    
     public LevelsCompare() {
        easy.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                Compare levelOne = new Compare();
                window.setVisible(false);
            }
        });
        intermediate.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                Compare levelOne = new Compare();
                levelOne.setLevelOneInt();
                window.setVisible(false);
            }
        });
        difficult.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                CompareDifficult levelOne = new CompareDifficult();
                window.setVisible(false);
            }
        });
        extraLevel.setVisible(false);
        background.setIcon(new ImageIcon(getClass().getResource("/resources/fondo7.png")));
        background.setBounds(0, 0, 1280,800);
        window.repaint();
        window.setVisible(true);
        voice.play();
     }
}
